#include "CView.h"

//----------------------------------------------
CView::CView(HWND hWnd, CViewDesc& oDesc) :
m_hWnd(hWnd),
m_iId(oDesc.id)
{
	//SetTimer(hwnd, 1, 100, NULL);
	/*RECT oRec;
	GetClientRect(hwnd, &oRec);
	bw = oRec.right;
	bh = oRec.bottom;
	if (id==-1)
	{
		oRec.left		= 0;
		oRec.top		= 0;
		oRec.right	= GetSystemMetrics(SM_CXSCREEN);
		oRec.bottom	= GetSystemMetrics(SM_CYSCREEN);
	}
	else GetWindowRect(hwnd, &oRec);*/

	//
	//HDC oDc		= GetDC(0);
	/*HDC oBuffDc	= CreateCompatibleDC(oDc);
	hbmBuffer	= CreateCompatibleBitmap(sdc, bw, bh);
	SelectObject(bufdc, hbmBuffer);
	SetStretchBltMode(bufdc, COLORONCOLOR);
	StretchBlt(bufdc, 0, 0, bw, bh, sdc, rc.left, rc.top, rc.right - rc.left, rc.bottom-rc.top, SRCCOPY);
	DeleteDC(bufdc);*/
	//ReleaseDC(0, oDc);
}

//----------------------------------------------
CView::~CView()
{

}
